008 drawing tools and animations
嘿欢迎回来。
Hey welcome back.
我们现在准备开始查看一些绘图工具和动画。
We are ready to start looking at some drawing tools and animations now.
那么让我们直接开始吧。
So let's jump right in.
而不是一个水箱并显示液位上升和下降。
And instead of a tank and showing the level rising and falling.
这次我们要做一个简单的数字动画。
This time we're going to do a simple digital animation.
当我走进图书馆时,我记得我威胁要使用图书馆里的这些泵之一。
I'm going to come into the libraries and remember I threatened to use one of these pumps that they have in the library.
好吧,我要继续这样做。
Well I'm going to go ahead and do that.
因此,让我们继续,在这里使用这个伟大的泵,我将复制它并粘贴到这里。
So let's go ahead and take this great pump right here and I'm going to copy that and just paste that right here.
然后一方面抓住角落,我们要拖动这个东西并使其变大一点。
And then on one hand grab the corner we're going to drag this thing and make it a little bit bigger.
我现在可以关闭我的图书馆,所以我将在这里做一些非常简单的事情。
I can close my library now so I'm going to do something very simple here.
我只是要像这样画一个圆圈。
I'm just going to draw a circle just like that.
让我们在这里选择我的选择箭头,我将能够将该圆圈移动到我想要的位置,因此我只需将该圆圈放在我的泵上方,就像那样,我将右键单击圆圈动画颜色,然后我将导航到标签。
Let's take my select arrow here and I'll be able to move that circle where I want it so I'm just going to put that circle right here over my pump just like that and I'm going to right click on the circle animation color and then I'm going to navigate to the tag.
我要寻找 P1,当它是 1 时会变成绿色,当它是 0 时会变成红色。
I'm going to look for P1 and when it's one is going to turn green and when it's zero that's going to turn red.
这将告诉我我的泵在做什么。
So that's going to tell me what my pump is doing.
如果它打开,它会变成绿色,如果它关闭。
If it's on it's going to be green if it's off.
那应该变成红色。
That should turn red.
因此,我将点击“应用衣服”,然后让我们再次测试该应用程序。
So I'll hit apply clothes and then let's go ahead and test this application one more time.
一旦我这样做,事情就应该自动变成绿色,因为我相信我们让这个事情继续运行。
And as soon as I do that things should automatically already be green because I believe we left this thing running.
因此,实际上,如果水箱处于排水模式,它可能会呈红色。
So actually it could be red if the tank is in drain mode.
一旦我们到达那里,我们就会发现,然后我们可以在程序中更改它以使其有所不同。
We'll find out once we get there and then we can change it in the program to make it different.
加载完毕后,果然我们的泵正在运行。
So loading up and sure enough right now our pump is running.
如果我进入我们的“查看”选项卡,我们将能够看到我们的水箱液位在哪里。
And if I go in here into our Review tab we'll be able to see where our tank level is.
电量已达到 80%,这意味着我们即将关闭,并且泵稍后会再次变红。
It's at 80 percent so that means we're just about to shut off and that pump should turn red again here in a little bit.
如果它持续存在,也许意味着我们正处于反冲洗模式。
And if it's staying on maybe that means we're in backwash mode.
因此,让我们检查一下到底发生了什么,为什么我们的泵仍然打开。
So let's check and see what's going on why is our pump still on.
果然我们的反冲洗正在运行。
Sure enough our backwash is running.
所以让我们看看我是否可以继续并关闭那一点,是的,这就是我们需要做的就是杀死我们的泵。
So let's see if I can just go ahead and flip that bit off and yeah that's all we needed to do that killed our pump.
现在我们可以将泵变成红色。
So now we can turn our pump red.
我们可以将泵变成绿色,它会真实地向我们展示泵正在做什么。
We can turn our pump green and it'll show us realistically what our pump is doing.
现在看来我们又要回去洗了。
And right now it looks like we're back washing once again.
超好的。
So good.
我们有动画。
We've got animation.
就绘图而言,我们已经看到了几种绘图方法。
And as far as drawing we've seen a couple of ways that we can draw.
我们当然可以做的一件事是进入我们的图书馆并取出东西,但我们实际上并不限于此。
One thing that we can do of course is to go into our library and pull things out but we're really not limited to that.
我们还可以画一些很酷的东西。
We can also draw some pretty cool stuff.
所以如果我只想创建一个螺旋桨。
So if I just wanted to let's say create a propeller.
我可以这样画一个椭圆,转身画另一个椭圆,这样把我的箭头带到这里,你知道,尝试让它们在同一平面上的一半。
I could draw an ellipse this way turn around draw another ellipse that way take my arrow here and you know kind of try to get them half way on the same plane.
一旦我找到了其中的两个,请选择它们,然后来到这里并单击“组”。
And once I've got the two of those select them both and then come up here and click on group.
现在我实际上已经有了一些可以与攻击联系起来的东西,并使其改变颜色、消失、在屏幕上移动。
And now I've actually got something that I could tie to attack and make it turn change colors disappear move around the screen.
我真的可以通过进入动画以很多不同的方式来制作动画,你可以在这里看到我有可见性颜色填充。
I could really animate this in a lot of different ways by going into animation you can see here I've got visibility color fill.
我可以通过垂直位置旋转来处理高度。
I can work with height with vertical position rotation.
我可以使用很多很多不同的动画属性,只需将这些内容与标签相关联并设置一些值即可。
I can work with lots and lots and lots of different animation properties just by associating those things with tags and setting some values.
因此,我们已经了解了如何做到这一点,并且了解了更多内容。
So we've already seen how to do that and see more.
令人高兴的是,从工厂的角度来看,它实际上更干净、更好。
And the nice thing is that in the factory talk of view it's actually a whole lot cleaner and a whole lot nicer.
您可以看到这个弹出窗口,我们可以在其中浏览标签,决定何时可见或不可见,设置带有颜色的旋转属性,并且我们可以更改这些颜色。
You can see this pop up window we've got where we can browse for the tags decide when it's visible or invisible set rotation properties with color and we can change those colors.
我们可以让它眨眼。
We can tell it to blink.
您可以在此动画窗口中执行各种非常酷的操作。
There are all kinds of really cool things you can do inside of this animation window.
这可能是工厂谈话视图工作室非常好的方面之一。
That's probably one of the very nice aspects of factory talk view studio.
因此,画出动画,让你的死亡变得生动起来。
So draw animate and make your demise come alive.
但请不要让它们变得怪异,不要让它们因为屏幕上移动、闪烁和闪烁的东西而分散注意力和丑陋,因为没有人想看到颜色变化。
But please please don't make them gardi don't make them distracting and ugly with things moving and blinking and flashing all over the screen because nobody wants to see that color changes.
可见性发生变化。
Visibility changes.
这些都是相当保守的。
Those are pretty conservative.
你可以经常使用它们,但没有人希望屏幕上到处都是闪烁的东西,所以当你构建你的 H demise 时请记住这一点,就这样。
You can use those quite a bit but nobody wants blinking things all over the screen so please keep that in mind when you're building your H demise so that's it.
我们将结束本次讲座,下期再见。
We'll wrap up on this lecture and I'll see you in the next.
干杯
Cheers